<?php /* Smarty version 2.6.20, created on 2013-05-27 05:17:55
         compiled from _core/_include/module/_mvc/view/tablerows/tablerowpurchase.tpl */ ?>
function TableRowPurchase(tableRow, item, options) {
  this._tableRow = tableRow;
  this._item = item;
  this._options = options;
  
  this._createElements();
};

TableRowPurchase.prototype._createElements = function() {
  var gui, td, unique = MiscUtils.unique();
  
  td = this._tableRow.insertCell(-1);
  td.align = 'left';
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.borderLeft = 'solid 1px #694247';
  td.style.height = '24px';
  td.style.backgroundColor = (this._tableRow.rowIndex % 2 != 0) ? '#fff' : '#faf9f4';
  td.style.padding = '0 0 0 20px';
  td.id = unique + '_name_td';
  
  td = this._tableRow.insertCell(-1);
  td.align = 'left';
  td.style.height = '24px';
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.backgroundColor = (this._tableRow.rowIndex % 2 != 0) ? '#fff' : '#faf9f4';
  td.style.padding = '0 0 0 20px';
  td.id = unique + '_quantity_td';
  
  td = this._tableRow.insertCell(-1);
  td.align = 'left';
  td.style.height = '24px';
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.backgroundColor = (this._tableRow.rowIndex % 2 != 0) ? '#fff' : '#faf9f4';
  td.style.padding = '0 0 0 20px';
  td.id = unique + '_unit_td';
  
  td = this._tableRow.insertCell(-1);
  td.align = 'left';
  td.style.height = '24px';
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.backgroundColor = (this._tableRow.rowIndex % 2 != 0) ? '#fff' : '#faf9f4';
  td.id = unique + '_price_td';
  td.style.padding = '0 0 0 20px';
  
  td = this._tableRow.insertCell(-1);
  td.align = 'center';
  td.style.height = '24px';
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.backgroundColor = (this._tableRow.rowIndex % 2 != 0) ? '#fff' : '#faf9f4';
  td.id = unique + '_remove_td';
  
  gui = GuiTableRowPurchase.instance(unique);
  new HandleTableRowPurchase(gui, this._item, this._options);
};